import { post, get } from '@/http/axios'
export default {
  namespaced: true,
  state: {
    productData:[]
  },
  mutations: {
    SET_PRODUCT(state, data){
      state.productData = data
    }
  },
  actions: {
    async getProductDataVuex({commit},param){
      let res = await get('/product/pageQuery',param)
      // console.log(res);
      commit('SET_PRODUCT', res.data.data.list)
    }
  }
}